#Add some necessary modules to your program
import sys, os, pygame
from pygame.locals import *

#set up pygame and main window
pygame.init()
window = pygame.display.set_mode((500, 500))
pygame.display.set_caption('Window Title Goes Here') 
screen = pygame.display.get_surface()
running = True

#Main Loop - Handle Events, Draw, Update screen
while running: 
  
   #handle events   
   events = pygame.event.get()
   for event in events: 
      if event.type == QUIT: 
         running = False
      else:
         pass
         #Enable line below to see what events are generated
         #print event

   #<drawing code goes here>
   # e.g. pygame.draw.line(screen, (0, 0, 255), (50, 50), (400, 400))
   
   
   
   #update the screen
   pygame.display.flip()

   
#We have now exited main loop
print "Program completed."